package org.hzero.exam.app.service;

import org.hzero.boot.scheduler.infra.annotation.JobHandler;
import org.hzero.boot.scheduler.infra.enums.ReturnT;
import org.hzero.boot.scheduler.infra.handler.IJobHandler;
import org.hzero.boot.scheduler.infra.tool.SchedulerTool;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @author 马旭阳
 * @date2019/8/6
 */
@JobHandler("updateDemo")
public class JobService implements IJobHandler {
    @Autowired
    private HodrSoHeaderService headerService;
    @Override
    public ReturnT execute(Map<String, String> map, SchedulerTool tool) {
        headerService.updateByOrderStatus(map.get("orderStatus"));
        return ReturnT.SUCCESS;
    }
}
